package top.mcwebsite.playandroid.business.gongzhonghao.impl.api

import retrofit2.http.GET
import retrofit2.http.Path
import top.mcwebsite.playandroid.business.articles.api.model.ArticleModel
import top.mcwebsite.playandroid.business.gongzhonghao.impl.model.ChapterModel
import top.mcwebsite.playandroid.common.network.model.ApiResult
import top.mcwebsite.playandroid.common.network.model.PageModel
import top.mcwebsite.playandroid.common.network.model.RespModel

interface GongZhongHaoApiService {

    @GET("wxarticle/chapters/json")
    suspend fun wxArticleChapters(): ApiResult<RespModel<List<ChapterModel>>>

    @GET("wxarticle/list/{id}/{page}/json")
    suspend fun wxArticlesById(
        @Path("id") id: Long,
        @Path("page") page: Int
    ): ApiResult<RespModel<PageModel<ArticleModel>>>
}